<!--
<?php
print <<<EOT
-->
<SCRIPT LANGUAGE="JavaScript" src="$webdb[www_url]/images/health/js/My97DatePicker/WdatePicker.js"></SCRIPT>
{$fidDB[name]}
<table width='100%' cellspacing='1' cellpadding='3' bgcolor='#CCCCCC' class="tablewidth" id="top_menu1">
  <tr>
  	<td>
  	  <form action="index.php">
  	  <input type="hidden" name="lfj" value="module_admin" />
  	  <input type="hidden" name="dirname" value="form" />
  	  <input type="hidden" name="file" value="form_content" />
  	  <input type="hidden" name="job" value="list" />
  	  <input type="hidden" name="mid" value="$mid" />
  	  <table>
  	  	<tr>
  	  	  <td colspan="5">查询条件</td>
  	  	</tr>
  	  	<tr>
  	  	  <td>启示日期</td>
  	  	  <td><input type="text" name="startTime" id="startTime" onclick="WdatePicker()" value="$startTime" readonly/></td>
  	  	  <td>结束日期</td>
  	  	  <td><input type="text" name="endTime" id="endTime" onclick="WdatePicker()" value="$endTime" readonly/></td>
  	  	  <td><input type="submit" value="提交" name="tijiao"/><input type="button" value="清空" onclick="$('#startTime').val('');$('#endTime').val('');"/></td>
  	  	</tr>
  	  </table>
  	  </form>
  	</td>
  </tr>
</table>
<form name="form_work" method="post" action="$admin_path">
<table width='100%' cellspacing='1' cellpadding='3' bgcolor='#CCCCCC' class="tablewidth">
  
    <tr class="head"> 
      <td width="6%" align="center">ID </td>
      <td align='center'>企业名称</td><td align='center'>去年年份</td><td align='center'>去年年末直营店人数</td><td align='center'>去年年末加盟店人数</td><td align='center'>去年年末承包经营人数</td><td align='center'>去年年末总人数</td><td align='center'>去年录用人数</td><td align='center'>去年离职人数</td> 
      <td width="11%" align="center">用户</td>
      <td width="11%" align="center">日期</td>
	  <td width="7%" align="center">$fidDB[statename]</td>
      <td width="17%" align="center">查看 / 修改 / 删除</td>
    </tr>
    <!--
EOT;
foreach($listdb AS $key=>$rs){
print <<<EOT
-->
    <tr bgcolor='#FFFFFF'> 
      <td width='6%' align="left"> 
        <input type="checkbox" name="iddb[{$rs[id]}]" value="$rs[id]">
        $rs[id]</td>        
      <td align='center'>$rs[company_name] </td><td align='center'>$rs[year] </td><td align='center'>$rs[zhiying_people] </td><td align='center'>$rs[jiameng_people] </td><td align='center'>$rs[chengbao_people] </td><td align='center'>$rs[total_people] </td><td align='center'>$rs[luyong_people] </td><td align='center'>$rs[lizhi_people] </td> 
      <td width="11%" align="center"><a href="../member/homepage.php?uid=$rs[uid]" target="_blank">$rs[username]</a></td>
      <td width="11%" align="center">$rs[posttime] </td>
	  <td width="7%" align="center"><!--
EOT;
if($rs[yz]){
print <<<EOT
-->
            <a href="$admin_path&file=form_content&job=yz&yz=0&mid=$mid&id=$rs[id]"><img alt='是' src="images/check_yes.gif" border="0"></a> 
            <!--
EOT;
}else{
print <<<EOT
-->
            <a href="$admin_path&file=form_content&job=yz&yz=1&mid=$mid&id=$rs[id]"><img alt='否' src="images/check_no.gif" border="0"></a> 
            <!--
EOT;
}
print <<<EOT
--></td>
      <td width="17%" align="center"><a href="$admin_path&job=view&mid=$rs[mid]&id=$rs[id]"><img src="../member/images/icon_view.gif" border="0"></a>  
        <a href="../$dirname/form.php?lfj=$lfj&job=edit&id=$rs[id]&mid=$rs[mid]" target="_blank"><img alt='点击修改' src='../member/images/button_edit.png' border=0></a>   
        <a href="$admin_path&action=delete&id=$rs[id]" onClick="return confirm('删除后不可恢复,你确实要删除吗?')"><img alt='点击删除' src='../member/images/del_icon2.gif' border=0></a></td>
    </tr>
    <!--
EOT;
}print <<<EOT
-->
    <tr bgcolor='#FFFFFF'> 
      <td colspan="12" align="center"> $showpage</td>
    </tr>
    <tr bgcolor='#FFFFFF'> 
      <td colspan="12" align="center"> <a href="javascript:" onClick="CheckAll('all')">全选</a>/<a href="javascript:" onClick='CheckAll()'>反选</a>
        <input type="button" name="Submit" value="删除" onclick="postdo('delete')">
        <input type="button" name="Submit1" value="导出" onclick="postdo('export')">
        <input type="hidden" name="action" value="0">
        <input type="hidden" name="mid" value="$mid">
      </td>
    </tr>
  
<SCRIPT LANGUAGE="JavaScript">
<!--
function postdo(va){
	document.form_work.action.value=va
	document.form_work.submit();
}
function CheckAll(va){
	form=document.form_work
	for (var i=0;i<form.elements.length;i++){
		var e = form.elements[i];
		if(va=='all'){
			e.checked = true;
		}else{
			e.checked == true ? e.checked = false : e.checked = true;
		}
	}
}
//-->
</SCRIPT>
</table>
</form>
<!--
EOT;
?>
-->


